package com.medical.manage.controller;

import com.medical.common.core.domain.Result;
import com.medical.manage.domain.Topic;
import com.medical.manage.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: medical
 * @BelongsPackage: com.medical.manage.controller
 * @Author: szw
 * @CreateTime: 2025-03-17  15:01
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RequestMapping("topic")
public class TopicController {
    @Autowired
    private TopicService topicService;

    /**
     * 话题列表
     * @return
     */
    @GetMapping("/getTopic")
    public Result<List<Topic>> getTopic(){
        return topicService.getTopic();
    }
}
